-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create odroid-xu3-fan-control.service #9
base: master
Are you sure you want to change the base?
Conversation
systemv startup script to place into /etc/systemd/system
ExecStart=/usr/home/odroid/odroid-xu3-fan-control/odroid-xu3-fan-control.sh | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
Restart=always | ||
User=www-data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any particular reason why www-data
user, and not ... say odroid
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I modevd to odroid, usually www-data is a login less user, so a bit safer.
I would also love to see update in README, to reflect new/alternative instructions of the setup. I myself even don't know what to do with the service file. :-> I propose a change in README "Installation" section. You should add a subsection and adapt texts to say that there are 2 alternative ways of the setup. Hope, I don't ask too much :-) |
moved to odroid user, removed network target
can do ;-) |
[Service] | ||
Type=simple | ||
WorkingDirectory=/home/odroid/odroid-xu3-fan-control | ||
ExecStart=/usr/home/odroid/odroid-xu3-fan-control/odroid-xu3-fan-control.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just tested this. But doesn't work. Is /usr/home/..
prefix an issue? Typo?
nthx@odroid:~$ sudo cp odroid-xu3-fan-control.service /etc/systemd/system
nthx@odroid:~$ ll /home/odroid/odroid-xu3-fan-control
total 16
-rw-rw-r-- 1 nthx nthx 1080 Nov 23 23:34 LICENSE
-rwxrwxr-x 1 nthx nthx 1963 Nov 23 23:34 odroid-fan-controller*
-rwxrwxr-x 1 nthx nthx 2591 Nov 23 23:34 odroid-xu3-fan-control.sh*
-rw-rw-r-- 1 nthx nthx 1431 Nov 23 23:38 README.md
nthx@odroid:~$ sudo service odroid-fan-controller start
Failed to start odroid-fan-controller.service: Unit odroid-fan-controller.service failed to load: No such file or directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right
removed bad usr path
Still same error: File was copied properly. All paths looks to match.
Can you please reabase too, so there is 1 commit in PR |
the message is on a missing path, have you done the "sudo cp odroid-xu3-fan-control.service /etc/systemd/system" before ? |
Of course I did
|
what gives: and: (at the end) |
I've updated the readme for this was missing: sorry I had no time to test it yet |
"Nothing" in the log
|
systemv startup script to place into /etc/systemd/system